<div id="header">
	<script type="text/javascript">
		var getgoods = "{|U:'Index/getGoodsName'}";
		var search = "{|U:'Search/index'}";
		var showlist = "{|U:'List/index'}";
	</script>
			<!-- 头部广告位置 -->
			<div class="adWrap">
				<div class="headAd">
					<a href="">
						<img src="__VIEW__/Img/head_top_ad.jpg" alt="头部广告位" />
					</a>
				</div>
				<!-- 头部广告位置结束 -->
			</div>
			<!--头部登陆信息开始-->
			<div class="toptopare">
				<div class="arewarp">
					<!--左边欢迎登陆文字开始-->
						<div class="welcome">
							<if value="isset($hd.session.uid)">
								 您好！
							 <a href="{|U:'UserInfo/index'}" style="color:#B81B22;font-weight: 700;">{$hd.session.username}</a>
							 <a href="{|U:'Login/loginout'}" style="color:#B81B22;">退出登录</a>
							<else/>
							您好,欢迎光临凡客诚品！
							<span class="loginreg">
								<a href="{|U:'Login/index'}">登陆</a>
								｜ 
								<a href="{|U:'Register/index'}">注册</a>
							</span>
							</if>
						</div>
					<!--左边欢迎登陆文字结束-->
					<!--订单收藏-->
						<div class="orderads">
							<a href="{|U:'UserInfo/orderList'}">我的订单</a>
								 
							<a href="">收藏本站</a>
						</div>
					<!--订单收藏结束-->
					<!-- 右边下拉列表-->
					<div class="droplist">
						<div href="" id="myVancl" class="mylist">
							<a href="">我的凡客 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站导航 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">帮助中心 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">购物指南</a></li>
								<li><a href="">配送方式</a></li>
								<li><a href="">支付方式</a></li>
								<li><a href="">售后服务</a></li>
								<li><a href="">投诉建议</a></li>
								<li><a href="">在线客户</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站公告 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
					</div>
					<!--右边下拉列表结束-->
				</div>
			</div>
			<!--头部登陆信息结束-->
			<!--logo和搜索条-->
			<div class="logoArea">
				<!--logo-->
				<a href="{|U:'Index/index'}" class="logo"></a>
				<!--logo结束-->
				<!--搜索区开始-->
				<div class="serachArea">
					<div class="searchTopAre">
					<!--搜索框-->
					<div class="searchInput">
						<form action="{|U:'Search/index'}" method="get">
							<input type="text" name="searchkey" autocomplete="off" id="inputBox"/>
							<div class="inputbox" >
							</div>
							<input type="submit" id="searchBtn" value="搜索" />
						</form>
					</div>
					<!--购物车-->
					<div class="shopCart">
						<a href="{|U:'Cart/index'}" style="color:white">购物车</a>(<span class="carNum"><if value="isset($hd['session']['cart']['total_rows'])">{$hd.session.cart.total_rows}<else/>0</if></span>)
						<div class="showCartList">
							<!--目前没有商品-->
							<p class="cartTitle">最近加入购物车</p>
							<ul>
								
							</ul>
							<!--购物车底部-->
							<div class="cartBottom">
								<div class="left">
									共计
									<p>￥0.00元</p>
								</div>
								<!--右边进入详细购物车页-->
								<div class="right">
									<a href="{|U:'Cart/index'}">查看购物车</a>
								</div>
							</div>
						</div>
					</div>
					<!--购物车结束-->
					</div>
					<!--热门搜索-->
					<div class="hotKeyword">
						<!--<span>热门搜索:</span>
						<a href="">吉武国</a>
						<a href="">T恤</a>
						<a href="">卡其裤</a>
						<a href="">长场雄</a>
						<a href="">POLO</a>
						<a href="">麻牛仔</a>
						<a href="">皮肤衣</a>
						<a href="">牛津纺</a>-->
					</div>
					<!--热门搜索结束-->
					
					<!--搜索框结束-->
				</div>
				<!--搜索区结束-->
			</div>
			<!--logo和搜索条结束-->
			<!--导航区-->
			<div id="navbar" style="position:relative;">
				<div class="navFirst" >
					全部商品分类
					
					<!--下拉菜单 -->
					<div class="dropLists" style="text-align: left;">
					
						<foreach from="$rightCateTree" key="$key" value="$val">
						<dl>
							<span>{$val.cname}</span>
							<foreach from="$val.son" key="$k" value="$v">	
							<if value="$k==0">
								<dd>
							<else />
								<dd class="otherCate">
							</if>
								<p>
									<a href="__MODULE__/List/index/cid/{$v.cid}">{$v.cname}</a>
								</p>
								
								<p class="sonCate">
									<foreach from="$v.son" key="$ky" value="$vl">
										<a href="__MODULE__/List/index/cid/{$vl.cid}" <if value="$vl.is_hot==1">class="hot"<else/>class="nothot"</if> >{$vl.cname}</a>
									</foreach>
								</p>
														
							</dd>
							</foreach>
							</dl>
    					</foreach>
    					
					</div>
					<!--下拉菜单 -->
					<span class="downArrowTop"></span>
				</div>
				<div class="navList" >
					<ul>
						<foreach from="$topCate" key="$key" value="$val">
						<li><a href="{|U:'List/index',array('cid'=>$val['cid'])}" title={$val.ckeywords}>{$val.cname}</a>
							<!--当前这个分类下页推荐的2个商品-->
							<div class="cateProduct">
								<!--分页推荐商品左边-->
								<foreach from="$val.son[0]" key="$kk" value="$vv">
								<div class="productLeft" <if value="$kk==1">style="border:none;"</if>>
									<div class="wrapProduct">
										<a href="__MODULE__/Details/index/gid/{$vv.gid}">
											<img src="__ROOT__/{$vv.goods_listimg}" alt="" width="140" height="140" />
										</a>
										<p class="goods">
											<a href="__MODULE__/Details/index/gid/{$vv.gid}">{$vv.goods_name|hd_substr:8,''}</a>
										</p>
										<div class="goodsDesc">
											<p class="goodsPrice" style="margin-top:50px;margin-left:20px;">
											￥{$vv.shop_price}
											</p>
										</div>
										
									</div>
								</div>
								</foreach>
							</div>
						</li>
						</foreach>
					</ul>
				</div>
			</div>
			<!--导航区结束-->
		</div>
		<!-- 头部结束  -->